import request from '@/utils/request';
const BASE_API = '/role'
export default {
  // 获取权限列表
  getRoleList(pageNo,pageSize,searchObj){
    return request({
      url: `${BASE_API}/list/${pageNo}/${pageSize}`,
      method: 'get',
      params: searchObj
    })
  },

  // 根据id删除数据
  delBatch(ids){
    return request({
      url: `${BASE_API}/delBatch`,
      method: 'delete',
      data: ids
    })
  }
}
